home *** CD-ROM | disk | FTP | other *** search
/ Amoszine 9 / Amoszine 9 (Disk 3 of 3).adf / AJC_IFF_TUTORIAL.lha / CYO3DRPGG9.IFF (.png) < prev   
IFF Interleaved Bitmap Image  |  1995-09-10  |  18KB  |  640x256  |  4-bit (4 colors)
Labels: text | screenshot | diagram | font
OCR: Now you've got a MAZE, -Y UP you need to RECORD the x coordinate, y coordinate player's VIEW constantly! 2,4 -1,4 0,4 1,4 2,4 LEFT 2,3-1,3 0,3 1,3 2,3 RIGHT STORES CURRENTLY +1,2 0,2 1,2 the view FACING UP -1,1 0,1 1.1- AHEAD (DR=1) ready to -X -1, 0 * 1,0 +X be trans lated in to 3d! 2 This table may look very ? COMPLICATED but in actual Dim _ROW(18) fact it's just logic! work this lot ? DR=1 Depending which DIRECTION out yourself 2 PX=5 the player is facing, the PY=5 routine for COLLECTING data from +Y DOWN the MAZE varies - If DR=1 but there are only FOUR directions! _ROW(1) =_ MAP(PX-1,PY) _ROW (2) =_ MAP(PX+1,PY) + PX = player X starting coordinates, ROW (3) =_ MAP(PX-1,PY-1)~ PY = player Y starting coordinates (middle of MAZE) ROW (4). . . . etc! DR = current facting direction (clockwise: 1=UP, 2=RIGHT, 3=DWN, 4=LEFT).